package com.yocard.yxyd.ui.contract;

import android.content.Context;
import android.net.Uri;
import android.support.v4.app.FragmentActivity;
import android.widget.ImageView;

import com.amap.api.location.AMapLocationClient;
import com.yocard.yxyd.base.BasePresenter;
import com.yocard.yxyd.base.BaseView;
import com.yocard.yxyd.http.model.request.CertRequest;
import com.yocard.yxyd.http.model.response.CommonBean;
import com.zaaach.citypicker.adapter.OnPickListener;

/**
 * Created on 2019/4/17.
 */
public interface CertContract {
    interface View extends BaseView {
        void onLocationInit(AMapLocationClient locationClient);
        void onPostSuccess();
        void onGetRealName(CommonBean bean);
        void uploadSuccess(String type,String picId,ImageView iv,Uri localPath);
    }

    interface Presenter extends BasePresenter<View> {
        void switchCity(OnPickListener listener, FragmentActivity activity);
        void initLocation(Context context);
        void postRealname(String name,String idCard,String cityCode,String id);
        void postRealname(CertRequest request);
        void getRealName();
        void uploadImage(String type, String fileUrl, ImageView iv, Uri localPath);
    }
}
